package com.ruoyi.syf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.syf.domain.RiskShutdownRecord;
import com.ruoyi.syf.domain.vo.RiskShutdownRecordVo;

import java.util.List;

/**
 * 开停工记录Service接口
 *
 * @author ruoyi
 * @date 2024-07-04
 */
public interface IRiskShutdownRecordService extends IService<RiskShutdownRecord>
{
    /**
     * 查询开停工记录
     *
     * @param id 开停工记录主键
     * @return 开停工记录
     */
    public RiskShutdownRecord selectRiskShutdownRecordById(Long id);

    /**
     * 查询开停工记录列表
     *
     * @param riskShutdownRecord 开停工记录
     * @return 开停工记录集合
     */
    public List<RiskShutdownRecordVo> list(RiskShutdownRecord riskShutdownRecord);

    /**
     * 新增开停工记录
     *
     * @param riskShutdownRecord 开停工记录
     * @return 结果
     */
    public int insertRiskShutdownRecord(RiskShutdownRecord riskShutdownRecord);

    /**
     * 修改开停工记录
     *
     * @param riskShutdownRecord 开停工记录
     * @return 结果
     */
    public int updateRiskShutdownRecord(RiskShutdownRecord riskShutdownRecord);

    /**
     * 批量删除开停工记录
     *
     * @param ids 需要删除的开停工记录主键集合
     * @return 结果
     */
    public int deleteRiskShutdownRecordByIds(Long[] ids);

    /**
     * 删除开停工记录信息
     *
     * @param id 开停工记录主键
     * @return 结果
     */
    public int deleteRiskShutdownRecordById(Long id);

    void saveList(Long objectId,List<Long> unitIds, String reason);

    void save(Long objectId,Long unitId, String reason);

    void updateList(Long objectId,List<Long> unitIds);

    boolean update(Long objectId,Long unitId);
}
